{% extends 'base.html' %}

{% block content %}
    {% if diagnostic_tests %}
        <table class="table table-striped table-condensed table-hover">
            <tr>
                <th>Id</th>
                <th>Title</th>
                <th>Edit</th>
                <th>Delete</th>
            </tr>
            {% for diagnostic in diagnostic_tests %}
                <tr>
                    <td><a href="/test/{{ diagnostic.id }}/">{{ diagnostic.id }}</a></td>
                    <td>{{ diagnostic.title }}</td>
                    <td><a href="/test/editdia/{{ diagnostic.id }}">Edit</a></td>
                    <td><a href="/test/deletedia/{{ diagnostic.id }}">Delete</a></td>
                </tr>
            {% endfor %}
        </table>
    {% else %}
        <p>There are no exercises in the database.</p>
    {% endif %}
{% endblock %}